﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Demo04
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string userName1 = Request.Form["UserName"];
            string password1 = Request.Form["Password"];

            string userName2 = Request.Params["UserName"];
            string password2 = Request.Params["Password"];

            string userName3 = Request.Params["n"];
            string password3 = Request.Params["p"];

            Response.Write($"Form ==> 你的账号是：{userName1},你的密码是:{password1}<br/><br/>");
            Response.Write($"Params ==> 你的账号是：{userName2},你的密码是:{password2}<br/><br/>");
            Response.Write($"Params ==> 你的账号是：{userName3},你的密码是:{password3}<br/><br/>");



        }
    }
}